﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>Title</title>
    <link rel="stylesheet" href="lib/swiper/css/swiper.min.css">
    <link rel="stylesheet" href="lib/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/less" href="less/index-swiper.less">
    <script src="lib/less/less.js"></script>
</head>
<body>
<!--版心-->
<div class="sn_container">
    <!--顶部通栏-->
    <header class="sn_topBar">
        <a href="#" class="icon_category"></a>
        <form action="#">
            <span class="icon_search"></span>
            <input type="search" placeholder="60寸电视免费拿">
        </form>
        <a href="#" class="icon_cart"></a>
    </header>
    <!--轮播图-->
    <style>
        .swiper-container img{
            width: 100%;
            display: block;
        }
    </style>
    <div class="swiper-container">
        <ul class="swiper-wrapper">
            <li class="swiper-slide"><a href="#"><img src="images/banner01.jpg" alt=""></a></li>
            <li class="swiper-slide"><a href="#"><img src="images/banner02.jpg" alt=""></a></li>
            <li class="swiper-slide"><a href="#"><img src="images/banner03.jpg" alt=""></a></li>
            <li class="swiper-slide"><a href="#"><img src="images/banner04.jpg" alt=""></a></li>
            <li class="swiper-slide"><a href="#"><img src="images/banner05.jpg" alt=""></a></li>
            <li class="swiper-slide"><a href="#"><img src="images/banner06.jpg" alt=""></a></li>
            <li class="swiper-slide"><a href="#"><img src="images/banner07.jpg" alt=""></a></li>
            <li class="swiper-slide"><a href="#"><img src="images/banner08.jpg" alt=""></a></li>
        </ul>
        <ul class="swiper-pagination">

        </ul>
    </div>
    <!--分类-->
    <nav class="sn_nav">
        <ul class="clearFix">
            <li><a href="#"><img src="images/nav01.png" alt=""><p>分类</p></a></li>
            <li><a href="#"><img src="images/nav02.png" alt=""><p>分类</p></a></li>
            <li><a href="#"><img src="images/nav03.png" alt=""><p>分类</p></a></li>
            <li><a href="#"><img src="images/nav04.png" alt=""><p>分类</p></a></li>
            <li><a href="#"><img src="images/nav05.png" alt=""><p>分类</p></a></li>
            <li><a href="#"><img src="images/nav01.png" alt=""><p>分类</p></a></li>
            <li><a href="#"><img src="images/nav02.png" alt=""><p>分类</p></a></li>
            <li><a href="#"><img src="images/nav03.png" alt=""><p>分类</p></a></li>
            <li><a href="#"><img src="images/nav04.png" alt=""><p>分类</p></a></li>
            <li><a href="#"><img src="images/nav05.png" alt=""><p>分类</p></a></li>
        </ul>
    </nav>
    <!--页签-->
    <footer class="sn_tabs">
        <ul>
            <li><a href="#"><span class="fa fa-home"></span><p>首页</p></a></li>
            <li><a href="#"><span class="fa fa-reorder"></span><p>分类</p></a></li>
            <li><a href="#"><span class="fa fa-file-text-o"></span><p>必抢清单</p></a></li>
            <li><a href="#"><span class="fa fa-user"></span><p>我的易购</p></a></li>
            <li><a href="#"><span class="fa fa-suitcase"></span><p>新手大礼包</p></a></li>
        </ul>
    </footer>
</div>
<script src="lib/zepto/zepto.min.js"></script>
<script src="lib/swiper/js/swiper.jquery.min.js"></script>
<script>
    $(function () {
        /*
        * 1.自动轮播
        * 2.无缝循环
        * 3.指示功能
        * */
        new Swiper('.swiper-container',{
            autoplay:1000,
            loop:true,
            pagination:'.swiper-pagination',
            autoplayDisableOnInteraction:false
        });
    })
</script>
</body>
</html>